A Gantt chart Grow effect
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraphgantt.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var data = [
[0,5,null,'Fred','Gradient(aqua:white)'],
[7,10,null,'Barney','Gradient(red:#fdd)'],
[15,5,null,'Jerry','Gradient(blue:#ddf)'],
[15,10,null,'Ben','Gradient(green:#dfd)'],
[23,5,null,'Rachel','Gradient(black:#ddd)'],
[27,5,null,'Paul','Gradient(gray:white)']
];
var gantt = new RGraph.Gantt({
id: 'cvs',
data: data,
options: {
borders: false,
xmax: 30,
backgroundGridAutofitNumhlines: 6,
backgroundGridAutofitNumvlines: 30,
textAccessible: true
}
}).grow();
};
</script>